<div class="giaoviens index">
<h2><?php __('Danh sách Giáo Viên');?></h2>
<p>
<?php
echo $paginator->counter(array(
/*'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)*/
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT');?></th>
	<th><?php echo $paginator->sort('donvi_id');?></th>
	<th><?php echo $paginator->sort('mscb');?></th>
	<th><?php echo $paginator->sort('Họ tên','Giaovien.hoten');?></th>
	<th><?php echo $paginator->sort('Ngày sinh','Giaovien.ngaysinh');?></th>
	<th><?php echo $paginator->sort('Giới tính','Giaovien.gioitinh');?></th>
	<th><?php echo $paginator->sort('Email','Giaovien.email');?></th>
	<th><?php echo $paginator->sort('Pass','Giaovien.pass');?></th>
	<th><?php echo $paginator->sort('Role','Giaovien.role');?></th>
	<th class="actions"><?php __('Thực hiện');?></th>
</tr>
<?php
$i = 0;$stt=0;
foreach ($giaoviens as $giaovien):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php 
                $stt=$stt+1;
                echo $stt; ?>
		</td>
		<td>
			<?php echo $html->link($giaovien['Donvi']['donvi'], array('controller' => 'donvis', 'action' => 'view', $giaovien['Donvi']['id'])); ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['mscb']; ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['hoten']; ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['ngaysinh']; ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['gioitinh']; ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['email']; ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['pass']; ?>
		</td>
		<td>
			<?php echo $giaovien['Giaovien']['role']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link($html->image('Action-Edit.png', array('alt'=>'Sửa')), array('action' => 'edit', $giaovien['Giaovien']['id']), array('escape' => false)); ?>
			<?php echo $html->link($html->image('Action-Delete.png', array('alt'=>'Xóa')), array('action' => 'delete', $giaovien['Giaovien']['id']), null, sprintf(__('Bạn có chắc muốn xóa không?', true), $giaovien['Giaovien']['id']), array('escape' => false)); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm giáo viên mới', true), array('action' => 'add')); ?></li>
			</ul>
</div>
